<div id="order-pay-dialog" class="order-pay-dialog-c" style="padding:0 10px 50px;">
<h3 style="height:36px;line-height:36px;border-bottom:1px solid #E0E0E0;color:#FF0000;"><span id="order-pay-dialog-close" class="close" style="float:right;"onclick="return X.boxClose();">关闭</span>填写邮寄地址</h3>
	<p class="info" id="smssub-dialog-display-id" style="height:auto;line-height:22px;color:#666;font-size:12px;">请填写您的收货地址！<br/>1天内可以修改地址</p>
	<style type="text/css">
		.coupons-table input {height:24px;border:none;background:#fff;border:1px solid #E0E0E0;text-indent:4px;}
	</style>
	<table class="coupons-table">
		
		<tr>
			<td nowrap align="right">收件人：</td>
			<td><input type="text" class="f-input" id="dialog_home_name" name="rname" size="15" value="{$login_user['realname']}" require="true" datatype="require"/></td>
		</tr>
		
		<tr>
			<td nowrap align="right">手机号：</td>
			<td><input class="f-input" id="dialog_home_rmobile" name="rmobile" size="15" value="{$login_user['mobile']}" require="true" datatype="mobile" maxLength="11" /></td>
		</tr>
		<tr>
			<td nowrap align="right">邮编：</td>
			<td><input type="text" class="f-input" id="dialog_home_code" name="rcode" size="15" value="{$login_user['zipcode']}" require="true" datatype="zip" maxLength="6"/></td>
		</tr>
		<tr>
			<td nowrap align="right">地址：</td>
			<td><input type="text" class="f-input" id="dialog_home_address" name="raddress" size="30"  value="{$login_user['address']}" require="true" datatype="require"/></td>
		</tr>

		<tr>
			<td><input style="position:absolute;right:10%;bottom:10px;border:none;margin-top:16px;width:60px;height:30px;font-size:16px;border:none;background:#FF0000;color:#fff;"type="submit" value="确定" class="formbutton" onclick="X.misc.homeedit();" /></td>
		</tr>
	</table>
</div>
<script type="text/javascript">
X.misc.homeedit = function() {
	var n = jQuery('#dialog_home_name').val();
	var m = jQuery('#dialog_home_rmobile').val();
	var c = jQuery('#dialog_home_code').val();
	var a = jQuery('#dialog_home_address').val();
	if (n&&m&&c&&a) return !X.get(WEB_ROOT + '/credit/ajax.php?action=edithome&id={$goods['id']}&n='+encodeURIComponent(n)+'&m='+m+'&c='+c+'&a='+encodeURIComponent(a));
};
</script>
